package cn.xsshome.xspringboot.service;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import cn.xsshome.xspringboot.entity.Person;

@Mapper
public interface PersonMapper {
	@Insert("insert into person(name,password) values(#{name},#{password})")
	@Options(useGeneratedKeys=true,keyColumn="id",keyProperty="id")
	void insert(Person person);
}
